﻿@{
    ViewBag.Title = "Index";
    Page.BodyStyle = "style='overflow:hidden;'";
    Layout = "~/Views/Shared/_LayoutForWorkFlow.cshtml";
}
<form method="post">
    <div class="toolbar" style="margin-top: 0; border-top: none 0;">
        <a href="#" onclick="openFlow(); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/folder_classic.png")) no-repeat left center;">打开</span>
        </a>
        <a href="#" onclick="addFlow(); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/folder_classic_add.png")) no-repeat left center;">新建</span>
        </a>
        <a href="#" onclick="flowAttrSetting(); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/hammer_screwdriver.png")) no-repeat left center;">属性</span>
        </a>

        <span class="toolbarsplit">&nbsp;</span>

        <a href="#" onclick="addStep(); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/shape_aling_left.png")) no-repeat left center;">新步骤</span>
        </a>
        <!--
            <a href="#" onclick="addSubFlow(); return false;">
                <span style="background:url(@Url.Content("~/images/ico/shape_aling_center.png")) no-repeat left center;">子流程</span>
            </a>
            -->
        <a href="#" onclick="addConn(); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/vector.png")) no-repeat left center;">连线</span>
        </a>
        <!--a href="#" onclick="copyStep(); return false;">
            <span style="background:url(/images/ico/ui_saccordion.png) no-repeat left center;">复制</span>
        </a-->
        <a href="#" onclick="removeObj(); return false;" title="删除当前选定对象">
            <span style="background:url(@Url.Content("~/Content/images/ico/cross.png")) no-repeat left center;">删除</span>
        </a>
        <span class="toolbarsplit">&nbsp;</span>

        <a href="#" onclick="saveFlow('save'); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/save.gif")) no-repeat left center;">保存</span>
        </a>
        <a href="#" onclick="saveAs(); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/saveas.gif")) no-repeat left center;">另存为</span>
        </a>

        <span class="toolbarsplit">&nbsp;</span>

        <a href="#" onclick="saveFlow('install'); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/folder_classic_up.png")) no-repeat left center;">安装</span>
        </a>
        <a href="#" onclick="saveFlow('uninstall'); return false;">
            <span style="background:url(@Url.Content("~/Content/images/ico/folder_classic_down.png")) no-repeat left center;">卸载</span>
        </a>
        <a href="#" onclick="saveFlow('delete'); return false;" title="删除流程">
            <span style="background:url(@Url.Content("~/Content/images/ico/folder_classic_stuffed_remove.png")) no-repeat left center;">删除</span>
        </a>
    </div>

    <div id="flowdiv" style="margin: 0; padding: 0;"></div>
    <script  src="@Url.Content("~/Scripts/FlowDesinger/draw-min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/FlowDesinger/workflow.js")" type="text/javascript"></script>
    <script type="text/javascript">
        var appid = '@Request.QueryString["appid"]';
        var iframeid = '@Request.QueryString["tabid"]';
        var dialog = new RoadUI.Window(); //top.mainDialog;
    </script>
</form>
